<!--
 * @Description:
 * @Author: dh
 * @Date: 2021-08-19 17:18:39
 * @LastEditors: dh
 * @LastEditTime: 2021-09-15 13:34:23
-->
<!-- B.html -->
<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>B</title>
	</head>

	<body>
		<h1>B 页面</h1>
		<span></span>
		<script>
			console.log(window.top===window.self);

			// 子页面
			function loadData(data) {
				document.body.append(`父页面的数据数据${data.a}`);
			}
			window.parent.$id('bridge').innerHTML = '子页面操控父页面dom';
		</script>
	</body>
</html>
